Update Account's field value in Contacts field for associated Contacts
Here is our approach to update Account's field value in Contacts field for associated Contacts

Our Assumption
1. We assume that you have a common field in both 'Accounts' and 'Contacts' module
Approach
We've given the steps to update Account's field value in Contacts field for associated Contacts
1. Create workflow to update associated Contacts
1.1 Tap on Settings icon

1.2 Tap on "Workflow Rules" under AUTOMATION

1.3 Tap on "Create Rule"

1.4 Fill all mandatory fields as mentioned in the image and tap on Next

1.5 Choose "On a record action"

1.6 Choose the following as mentioned in the image and tap on Next

1.7 Choose 'All Accounts' and tap on Next

1.8 Choose "Function" for Instant Actions

1.9 Tap on "New Function"

1.10 Choose "Write your own"

1.11 Give Function Name as mentioned in the image

1.12 Tap on "Edit Arguments"

1.13 Choose Param value as mentioned in the image and tap on Save

1.14 Copy and paste the below Code Snippet and tap on Save

1.15 Tap on "Save"

Code Snippet
Related Community Question
How to send email to contacts filtered by one account field | Link
Hello Olivier, I have the same need but I don´t have any knowledge nor experience with Zoho functions. I saw your code and I believe that it could work great for me with a couple of changes. My goal is to filter the contacts that have the field "Membership status" in the Account module "Active"
I created the same field, "Membership status", in Account and in Contacts, like you suggested.
Like your "-aircraft" field, mine "Membership status" is also a dropdown list with "Active" and "Inactive".
The parameter that I think I should use is the "Account name" (which is the name of the fields I have for the Company name, since I kept the original set up of Zoho CRM).
I tried to adapt your code to my needs but when I save it I receive an error message saying "Failed to save the function
Variable 'Account_name' is not defined Line Number: 2".
Could you please help me to go forward? I´m copying the code variation that I used from yours.
// Get Account Info
thisAccount = zoho.crm.getRecordById("Accounts",Account_name);
// Get Membership status field data
accountMembership_status = thisAccount.get("Membership_status");
// Get all contacts
relatedContacts = zoho.crm.getRelatedRecords("Contacts","Accounts",Account_name);
// Loop & write has Membership status field to all related Contacts
for each thisContact in relatedContacts
{
update = zoho.crm.updateRecord("Contacts",thisContact.get("id"),{"Membership_status":accountMembership_status});
}
Probably I will receive more errors for lines below, but I didn´t know how to continue.
Thanks in advance.
Juan Carlos

